package com.yearEndWorkload.common;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public  class  YearEndExcelName {
    private static final List<String> yearEndExcelNameList = Arrays.asList("新增突出业绩成果奖励工作量","考核平均绩效工作量","管理服务绩效工作量","专项工作绩效工作量","常规工作量");

    private static final List<String> yearEndTableNameList = Arrays.asList("outstanding_performance","performance_appraisal","service_performance","specialized_work","workload_load");


    public static List<String> getYearEndExcelName(){
        return yearEndExcelNameList;
    }

    public static List<String> getYearEndTableName(String yearEndExcelName){

        List<String> res = new ArrayList<>();
        for (int i = 0; i < yearEndExcelNameList.size(); i++) {
            if(yearEndExcelNameList.get(i).equals(yearEndExcelName)){
                res.add(yearEndTableNameList.get(i));
                if(yearEndExcelNameList.get(i).equals("新增突出业绩成果奖励工作量")){
                    res.add("outstanding_child");
                }
                if(yearEndExcelNameList.get(i).equals("专项工作绩效工作量")){
                    res.add("specialized_child");
                }
                return res;
            }
        }
        return null;
    }

}
